<alert class="alert-msg" ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}
</alert>

<form class="form-horizontal">
    <div class="box box-info">
        <div class="box-header with-border">
            <h3 class="box-title">修改类目</h3>
        </div>
        <div class="box-body">

            <div class="form-group">
                <label class="col-sm-2 control-label">标题</label>

                <div class="col-sm-4">
                    <input type="text" class="form-control" ng-model="currentForest.title">
                </div>

                <label class="col-sm-2 control-label">关税</label>

                <div class="col-sm-4">
                    <input type="text" class="form-control" ng-model="currentForest.tariff">
                </div>
            </div>

            <div class="form-group">
                <span class="col-sm-6">父亲类目:{{currentForest.parentId}}</span>

                <div>
                    <label class="col-sm-2 control-label">类目图片</label>
                    <button class="btn btn-primary" ng-click="addImage()">修改图片</button>
                    <img src="{{currentForest.image}}" ng-show="currentForest.image" style="width: 50px"/>
                    <input type="text" ng-model="currentForest.image" hidden>
                </div>
            </div>

            <button type="submit" class="btn btn-primary" ng-click="updateForest()">
                修改
            </button>
        </div>
    </div>
</form>


<button class="btn btn-primary" ng-click="addForestProperty()">
    增加类目属性
</button>
<span>类目属性列表，共获取<strong>{{totalItems}}</strong>条数据：</span>

<pagination total-items="totalItems"
            ng-model="currentPage"
            items-per-page="pageSize"
            max-size="3" class="pagination-sm"
            boundary-links="true" rotate="false"
            previous-text="上一页"
            next-text="下一页"
            last-text="最后一页"
            first-text="第一页"
            ng-change="getBizSceneList()">

</pagination>


<div style="height:400px !important;" ui-grid="gridOptions" ui-grid-auto-resize ui-grid-resize-columns class="grid">
</div>

<script type="text/ng-template" id="addForestProperty.html">
    <div class="modal-header">
        <h3 class="modal-title">选择属性</h3>
    </div>
    <div class="modal-body">

        <form class="form-horizontal">

            <div class="box box-info">
                <div class="box-header with-border">
                    <h3 class="box-title">属性搜索</h3>
                </div>
                <div class="box-body">
                    <div class="row form-group" style="display: flex; flex-flow: row">
                        <div class="form-group col-sm-6" style="display: flex; flex-flow: row">
                            <label class="col-sm-2 control-label">标题</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="title">
                            </div>
                        </div>

                        <div class="form-group col-sm-4" style="display: flex; flex-flow: row">
                            <label class="col-sm-2 control-label">创建者</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="userId">
                            </div>
                        </div>

                    </div>
                    <div class="row form-group" style="display: flex; flex-flow: row">

                        <div class="form-group col-sm-6" style="display: flex; flex-flow: row">
                            <label class="col-sm-2 control-label">属性类型</label>

                            <div class="col-sm-10">
                                <input type="text" class="form-control" ng-model="propertyType">
                            </div>
                        </div>

                        <div class="form-group col-sm-4" style="display: flex; flex-flow: row">
                            <button type="submit" class="btn btn-primary" ng-click="queryList()">
                                搜索
                            </button>

                        </div>

                    </div>


                </div>

            </div>
        </form>


        获取<strong>{{totalItems}}</strong>条数据：
        <div style="height:400px !important;" ui-grid="gridOptions" ui-grid-auto-resize ui-grid-resize-columns
             class="grid">
            <!--这里显示页面信息 -->
        </div>

        <pagination total-items="totalItems"
                    ng-model="currentPage"
                    items-per-page="pageSize"
                    max-size="3" class="pagination-sm"
                    boundary-links="true" rotate="false"
                    previous-text="上一页"
                    next-text="下一页"
                    last-text="最后一页"
                    first-text="第一页"
                    ng-change="getBizSceneList()">

        </pagination>


    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="innerOk()">操作</button>
        <button class="btn btn-cancel" ng-click="cancel()">取消操作</button>
    </div>
</script>